package com.dingding.queue.base.sms;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dingding.facade.queue.dto.msg.MessageRequestsDTO;

/**
 * 
 * @ClassName: ISendMessageDispatcher 
 * @Description: 不同短信平台发送调度实现类
 * @author CHEHAUNBO 
 * @date 2016年6月13日 下午5:50:47
 * 
 */
@Component("sendMessageDispatcher")
public class SendMessageDispatcher implements ISendMessageDispatcher {

//	@Resource(name = "chuangLanSendMessage")
//	private ISendMessage chuangLanSendMessage;

	@Resource(name = "mengWangSendMessage")
	private ISendMessage mengWangSendMessage;
	/**
	 * 
	 * 不同短信平台发送调度方法
	 * 
	 * @Title: dispatcher 
	 * @return  boolean true 发送成功 false: 发送失败
	 * @author CHEHAUNBO
	 * 
	 */
	@Override
	public boolean dispatcher(MessageRequestsDTO messageRequestsDTO) {
		return mengWangSendMessage.sendMessage(messageRequestsDTO.getTelPhone(),
				messageRequestsDTO.getMessageContent());
	}

}
